package cn.miju.admin.system.service;

import cn.miju.admin.system.vo.AccountLoginInVO;
import cn.miju.admin.system.vo.LoginOutVO;
import cn.miju.admin.system.vo.RegisterInVO;

/**
 * <pre>
 * 业务类
 * </pre>
 *
 * @author zhuming
 * @version 1.0.0
 * @since 2023-03-18 15:47
 */
public interface LoginService {

    /**
     * 用户登录
     * @param inVO {@link AccountLoginInVO}
     * @param clientIP IP
     * @return {@link LoginOutVO}
     */
    LoginOutVO login(AccountLoginInVO inVO, String clientIP);
    /**
     * 用户注册
     *
     * @param inVO     {@link RegisterInVO}
     * @param clientIP IP
     */
    void register(RegisterInVO inVO, String clientIP);

}
